# 接口对象层：封装请求，发送请求，返回结果
# 定义类（）
import requests


class IhrmLonginApi:
    @classmethod
    def longin(cls,request_json):
        resp = requests.post(url="http://ihrm-test.itheima.net/api/sys/login"
                     ,json=request_json)
        return resp
if __name__ == '__main__':
    data_json={"mobile":"13800000002","password":"123456"}
    resp=IhrmLonginApi.longin(data_json)
    print(resp.json())





